<%@ page contentType="text/html;charset=UTF-8" %>
<html>
<head>
    <meta name='layout' content='main'/>
    <title>Busqueda</title>
</head>
<body>
<br>
<h1 align="center" style="color: #000000;">Busqueda de Personas</h1>
<br>
<div align="center">
    <g:form action="search">
        <table>
            <tbody>
            <tr class="prop">
                <td valign="top" class="name">Sexo:</td>
                <td valign="top" class="value"><input name="sexo" type="text" value="${sexo}"/></td>
            </tr>
            <tr class="prop">
                <td valign="top" class="name">Edad Mayor a:</td>
                <td valign="top" class="value"><input name="edad" type="text" value="${edad}"/></td>
            </tr>
            </tbody>
        </table>
        <g:submitToRemote update="searchresults" value="Buscar" url="[controller:'busqueda', action:'search']"
                          onLoading="showSpinner(true)"  onComplete="showSpinner(false)" class="button" >
        </g:submitToRemote>
    </g:form>

</div>

<g:render template="searchResults"/>
</body>
</html>